package id.co.shuba.spamobile.data;

import android.content.ContentValues;
import android.database.sqlite.SQLiteDatabase;

public class TransactionLogDB extends BaseDB {	
	
	public TransactionLogDB(DatabaseHandler db) {
		super(db);
	}		
	
	public void add(String userName, String type, String desc) {
		ContentValues values = new ContentValues();
		values.put("TRANS_DATE", getCurrentDateTime());
		values.put("USER_NAME", userName);
		values.put("TRANS_TYPE", type);
		values.put("TRANS_DESC", desc);		

		SQLiteDatabase db = _db.getWritableDatabase();

		db.insert("TBL_TRANSACTION_LOG", null, values);
	}	
}
